package com.shxy.dao;

import com.shxy.entity.Staff;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 员工信息访问接口
 */
@Repository
public interface StaffDao extends JpaRepository<Staff, Integer> {

    Page<Staff> findAll(Pageable pageable);

    Page<Staff> findAll(Specification specification, Pageable pageable);

    Staff findByIdCard(String idCard);
}
